package o;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import com.huawei.appgallery.forum.user.menu.MenuLinearLayout;
import com.huawei.appgallery.forum.user.menu.MenuLinearLayout.e;

public abstract class cbs implements OnClickListener {
    public abstract int ˊ();

    public abstract int ˋ();

    public abstract int ˎ();

    public abstract int ॱ();

    public void ˎ(View view) {
    }

    public void ˎ(Context context, MenuLinearLayout menuLinearLayout) {
        View inflate = View.inflate(context, ˋ(), menuLinearLayout);
        inflate.findViewById(ˎ()).setOnClickListener(this);
        ImageView imageView = (ImageView) inflate.findViewById(ॱ());
        if (imageView != null) {
            Drawable drawable = context.getResources().getDrawable(ˊ());
            imageView.setBackground(drawable);
            e eVar = new e();
            eVar.ˋ(drawable);
            eVar.ˎ(imageView);
            menuLinearLayout.ॱ(eVar);
        }
        ˎ(inflate);
    }
}
